home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / program / rez_rgb.asc < prev    next >
Text File  |  1995-04-22  |  5KB  |  133 lines

  1.                            HiSoft Basic 2.10 
  2.                            ================= 
  3.  
  4. UPDATE version 2.0 
  5. ================== 
  6.  
  7. I've now tested all the RGB/TV resolutions.  See the extra table. 
  8.  
  9.  
  10. FALCON SCREEN RESOLUTIONS 
  11. ========================= 
  12.  
  13. One major problem I had when making my programs was detecting which damn  
  14. screen resolution the user was loading my programs in.  Could they be in  
  15. a weird True Colour resolution?  If they have a VGA do they have the  
  16. Double Line On or Off ?  All these questions and no obvious answer made  
  17. me fiddle around and here is what I found... 
  18.  
  19.  
  20. SYSTAB & GETREZ% 
  21. ================ 
  22.  
  23. Both these calls are supposed to be used independantly, but with the  
  24. amount of resolutions on the Falcon it makes sense to combine their  
  25. results to find out the correct resolution and warn the user  
  26. accordingly. 
  27.  
  28. r%=peekw(systab) 
  29. g%=getrez% 
  30.  
  31. The above are the methods used from within HB.  You will need to have  
  32. the Xbios library installed for the getrez command to work or else it  
  33. will return a value of 0 each time regardless. 
  34.  
  35.  
  36. RESULTS for a VGA 
  37. ================= 
  38.  
  39. Falcon Resolution                SYSTAB    GETREZ 
  40. ------------------------------------------------- 
  41. 4 colour, 40 column, DL Off        2         7 
  42. 4 colour, 80 column, DL Off        2         2 
  43. 4 colour, 40 column, DL On         2         0 
  44. 4 colour, 80 column, DL On         2         1 
  45.  
  46. 16 colour, 40 column, DL Off       4         7 
  47. 16 colour, 80 column, DL Off       4         2 
  48. 16 colour, 40 column, DL On        4         0 
  49. 16 colour, 80 column, DL On        4         1 
  50.  
  51. 256 colour, 40 column, DL Off      8         7 
  52. 256 colour, 80 column, DL Off      8         2 
  53. 256 colour, 40 column, DL On       8         0 
  54. 256 colour, 80 column, DL On       8         1 
  55.  
  56. True Colour, 40 column, DL Off     16        7 
  57. True Colour, 40 column, DL On      16        0 
  58.  
  59. ST LOW                             4         0 
  60. ST MED                             2         1 
  61. ST HIGH                            1         2 
  62.  
  63.  
  64. RESULTS for an RGB 
  65. ================== 
  66.  
  67. Falcon resolution                SYSTAB    GETREZ 
  68. ------------------------------------------------- 
  69. 2 Colour, 80 column, Int Off       1         1 
  70. 2 Colour, 80 column, Int On        1         2 
  71.  
  72. 4 Colour, 40 column, Int Off       2         0 
  73. 4 Colour, 40 column, Int On        2         7 
  74. 4 Colour, 80 column, Int Off       2         1 
  75. 4 Colour, 80 column, Int On        2         2 
  76.  
  77. 16 Colour, 40 column, Int Off      4         0 
  78. 16 Colour, 40 column, Int On       4         7 
  79. 16 Colour, 80 column, Int Off      4         1 
  80. 16 Colour, 80 column, Int On       4         2 
  81.  
  82. 256 Colour, 40 column, Int Off     8         0 
  83. 256 Colour, 40 column, Int On      8         7 
  84. 256 Colour, 80 column, Int Off     8         1 
  85. 256 Colour, 80 column, Int On      8         2 
  86.  
  87. True Colour, 40 column, Int Off    16        0 
  88. True Colour, 40 column, Int On     16        7 
  89. True Colour, 80 column, Int Off    16        1 
  90. True Colour, 80 column, Int On     16        2        
  91.  
  92.  
  93. THAT'S IT! 
  94. ========== 
  95.  
  96. I am sure you can see from the above table that when you check the  
  97. systab and getrez results if they equal 16 and 7 then the user is in the  
  98. True Colour, 40 column, Double Line Off mode... and so on... 
  99.  
  100.  
  101. PROBLEM 
  102. ======= 
  103.  
  104. There is only one problem though.  The ST LOW results (4/0) are the same  
  105. as the 16 colour, 40 column, Double Line On (4,0).  This is because  
  106. essentially they are the same screen dimensions but you still might like  
  107. to know which one of the two it is.  Well I can't help you here I am  
  108. afraid but if anyone out there can then PLEASE get in touch! 
  109.  
  110. >>> Another problem is that there is no way to detect which type  
  111. of monitor the user has.  The RGB and VGA results are pretty much  
  112. the same in most respecst, therefore you have problems, especially  
  113. as although the systab and getrez results are the same, the  
  114. display area available most certainly is not <<< 
  115.  
  116.  
  117. CONTACT 
  118. ======= 
  119.  
  120. Falcon owning, HiSoft Basic programming people please get in touch with  
  121. me to swap ideas and routines. 
  122.  
  123.      Richard Davey, 10 Oak Drive, Portishead, Bristol, BS20 8QS, UK. 
  124.      Phone: +44 (0) 275 843241 
  125.      Email: requiem@armory.com 
  126.  
  127. The email will become active again during October 1994.  Please allow  
  128. some time for a reply as all mail is forwarded to me when at University. 
  129.  
  130. Anyone who wants details about the FALCON OWNERS GROUP just send me a  
  131. single first class stamp and your address. 
  132.  
  133.